package cloudPayAdmin.admin.dbapp.entity.hicatcard.user;

import java.util.LinkedHashMap;
import java.util.Map;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import cloudPayAdmin.util.TimeUtil;
import cloudPayAdmin.util.annotation.StringDateFormat;

@Entity
@Table(name = "t_user_card_recharge_new_user")
public class TUserCardRechargeNewUser {
	
	public static Integer STATUS_HAS_GET = 1;  //已领取
	public static String STATUS_HAS_GET_MSG = "已领取";  //已领取
	public static Integer STATUS_NOT_GET = 0;  //未领取
	public static String STATUS_NOT_GET_MSG = "未领取";  //未领取
	
	public static Map<String,String> initStatusMap() {
		Map<String,String> statusMap = new LinkedHashMap<String,String>();
		statusMap.put(String.valueOf(STATUS_HAS_GET), STATUS_HAS_GET_MSG);
		statusMap.put(String.valueOf(STATUS_HAS_GET), STATUS_NOT_GET_MSG);
		return statusMap;
	}

	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "USER_CARD_RECHARGE_NEW_USER_ID")
	private Long userCardRechargeNewUserId;
	
	@Column(name = "USER_CARD_RECHARGE_ID")
	private Long userCardRecharegeId;
	
	@Column(name = "PHONE")
	private String phone;
	
	@Column(name = "CARD_ID")
	private Long cardId;
	
	@Column(name = "NUMBER")
	private Integer number;
	
	@Column(name = "REMARK")
	private String remark;
	
	@Column(name = "STATUS")
	private Integer status;
	
	@Column(name = "USER_ID")
	private Long userId;
	
	@StringDateFormat(oriFormat=TimeUtil.DATE_PATTERN_NOSEPARTOR,destFormat=TimeUtil.DEFAULT_DATE_PATTERN)
	@Column(name = "CREATE_TIME")
	private String createTime;
	
	@StringDateFormat(oriFormat=TimeUtil.DATE_PATTERN_NOSEPARTOR,destFormat=TimeUtil.DEFAULT_DATE_PATTERN)
	@Column(name = "UPDATE_TIME")
	private String updateTime;
	
	@Column(name = "ENABLE")
	private Boolean enable = Boolean.TRUE;
	
	@Transient
	private String cardName;
	
	

	public String getCardName() {
		return cardName;
	}

	public void setCardName(String cardName) {
		this.cardName = cardName;
	}

	public Long getUserCardRechargeNewUserId() {
		return userCardRechargeNewUserId;
	}

	public void setUserCardRechargeNewUserId(Long userCardRechargeNewUserId) {
		this.userCardRechargeNewUserId = userCardRechargeNewUserId;
	}

	public Long getUserCardRecharegeId() {
		return userCardRecharegeId;
	}

	public void setUserCardRecharegeId(Long userCardRecharegeId) {
		this.userCardRecharegeId = userCardRecharegeId;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Long getCardId() {
		return cardId;
	}

	public void setCardId(Long cardId) {
		this.cardId = cardId;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public Boolean getEnable() {
		return enable;
	}

	public void setEnable(Boolean enable) {
		this.enable = enable;
	}
	
	
}
